home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Pascal / Snippets / Map / Map notes next >
Encoding:
Text File  |  1997-04-19  |  1.4 KB  |  19 lines  |  [TEXT/ttxt]

  1. Map
  2. Ingemar's landscape generator
  3.  
  4. This program is a voxel landscape generator/animator that I wrote long ago. I wrote most of it in 1995, and havn't done much since then. I have translated the comments to english and cleaned up a little junk, but expect a lot of junk to remain. (Some junk remain for clarity though, namely the old versions of some unrolled loops.)
  5.  
  6. The program shoots "rays" over a height map, using longer steps when it gets far away, in order to save computation time. It is still pretty slow on 68k. I guess it could use some pixel doubling or interlacing. However, I don't have more time to spend on it.
  7.  
  8. You move with the keys IJKL.
  9.  
  10. Map uses a static grayscale height map, PICT 128, and maps a color picture, PICT 129, on it. That gives a decent (but not exactly perfect) 3D effect with shadows on one side of hills and highlights on the other. You must make the height map and the color picture match each other well, or the resulting animation will not be acceptable.
  11.  
  12. There is an alternate color picture in the resource file, which is the same as 129 plus some color paths on the ridges. It is a more fun, IMHO.
  13.  
  14. Map depends on TransSkel 2.5 in the version included in SAT, and works with Think Pascal or Metrowerks Pascal (CodeWarrior).
  15.  
  16. If you can use this code, or learn something from it, how about a little "thank you" in your credits? It would be fun to know if it is useful to someone.
  17.  
  18. /Ingemar Ragnemalm
  19.